﻿using System;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x02000013 RID: 19
	[DebuggerNonUserCode]
	public sealed class EndBatchTask : GeneratedMessage<EndBatchTask, EndBatchTask.Builder>
	{
		// Token: 0x060001B8 RID: 440 RVA: 0x00004D23 File Offset: 0x00002F23
		private EndBatchTask()
		{
		}

		// Token: 0x170000B5 RID: 181
		// (get) Token: 0x060001B9 RID: 441 RVA: 0x00004D48 File Offset: 0x00002F48
		public static EndBatchTask DefaultInstance
		{
			get
			{
				return EndBatchTask.defaultInstance;
			}
		}

		// Token: 0x170000B6 RID: 182
		// (get) Token: 0x060001BA RID: 442 RVA: 0x00004D4F File Offset: 0x00002F4F
		public override EndBatchTask DefaultInstanceForType
		{
			get
			{
				return EndBatchTask.DefaultInstance;
			}
		}

		// Token: 0x170000B7 RID: 183
		// (get) Token: 0x060001BB RID: 443 RVA: 0x00002579 File Offset: 0x00000779
		protected override EndBatchTask ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x170000B8 RID: 184
		// (get) Token: 0x060001BC RID: 444 RVA: 0x00004D56 File Offset: 0x00002F56
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_EndBatchTask__Descriptor;
			}
		}

		// Token: 0x170000B9 RID: 185
		// (get) Token: 0x060001BD RID: 445 RVA: 0x00004D5D File Offset: 0x00002F5D
		protected override FieldAccessorTable<EndBatchTask, EndBatchTask.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_EndBatchTask__FieldAccessorTable;
			}
		}

		// Token: 0x170000BA RID: 186
		// (get) Token: 0x060001BE RID: 446 RVA: 0x00004D64 File Offset: 0x00002F64
		public bool HasTaskId
		{
			get
			{
				return this.hasTaskId;
			}
		}

		// Token: 0x170000BB RID: 187
		// (get) Token: 0x060001BF RID: 447 RVA: 0x00004D6C File Offset: 0x00002F6C
		public string TaskId
		{
			get
			{
				return this.taskId_;
			}
		}

		// Token: 0x170000BC RID: 188
		// (get) Token: 0x060001C0 RID: 448 RVA: 0x00004D74 File Offset: 0x00002F74
		public bool HasSeqId
		{
			get
			{
				return this.hasSeqId;
			}
		}

		// Token: 0x170000BD RID: 189
		// (get) Token: 0x060001C1 RID: 449 RVA: 0x00004D7C File Offset: 0x00002F7C
		public string SeqId
		{
			get
			{
				return this.seqId_;
			}
		}

		// Token: 0x170000BE RID: 190
		// (get) Token: 0x060001C2 RID: 450 RVA: 0x00004D84 File Offset: 0x00002F84
		public override bool IsInitialized
		{
			get
			{
				return this.hasTaskId;
			}
		}

		// Token: 0x060001C3 RID: 451 RVA: 0x00004D94 File Offset: 0x00002F94
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] endBatchTaskFieldNames = EndBatchTask._endBatchTaskFieldNames;
			if (this.hasTaskId)
			{
				output.WriteString(1, endBatchTaskFieldNames[1], this.TaskId);
			}
			if (this.hasSeqId)
			{
				output.WriteString(2, endBatchTaskFieldNames[0], this.SeqId);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x170000BF RID: 191
		// (get) Token: 0x060001C4 RID: 452 RVA: 0x00004DEC File Offset: 0x00002FEC
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x060001C5 RID: 453 RVA: 0x00004E0C File Offset: 0x0000300C
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			if (this.hasTaskId)
			{
				num += CodedOutputStream.ComputeStringSize(1, this.TaskId);
			}
			if (this.hasSeqId)
			{
				num += CodedOutputStream.ComputeStringSize(2, this.SeqId);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x060001C6 RID: 454 RVA: 0x00004E6C File Offset: 0x0000306C
		public static EndBatchTask ParseFrom(ByteString data)
		{
			return EndBatchTask.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x060001C7 RID: 455 RVA: 0x00004E7E File Offset: 0x0000307E
		public static EndBatchTask ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return EndBatchTask.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001C8 RID: 456 RVA: 0x00004E91 File Offset: 0x00003091
		public static EndBatchTask ParseFrom(byte[] data)
		{
			return EndBatchTask.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x060001C9 RID: 457 RVA: 0x00004EA3 File Offset: 0x000030A3
		public static EndBatchTask ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return EndBatchTask.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001CA RID: 458 RVA: 0x00004EB6 File Offset: 0x000030B6
		public static EndBatchTask ParseFrom(Stream input)
		{
			return EndBatchTask.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x060001CB RID: 459 RVA: 0x00004EC8 File Offset: 0x000030C8
		public static EndBatchTask ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return EndBatchTask.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001CC RID: 460 RVA: 0x00004EDB File Offset: 0x000030DB
		public static EndBatchTask ParseDelimitedFrom(Stream input)
		{
			return EndBatchTask.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x060001CD RID: 461 RVA: 0x00004EED File Offset: 0x000030ED
		public static EndBatchTask ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return EndBatchTask.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001CE RID: 462 RVA: 0x00004F00 File Offset: 0x00003100
		public static EndBatchTask ParseFrom(ICodedInputStream input)
		{
			return EndBatchTask.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x060001CF RID: 463 RVA: 0x00004F12 File Offset: 0x00003112
		public static EndBatchTask ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return EndBatchTask.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001D0 RID: 464 RVA: 0x00002579 File Offset: 0x00000779
		private EndBatchTask MakeReadOnly()
		{
			return this;
		}

		// Token: 0x060001D1 RID: 465 RVA: 0x00004F25 File Offset: 0x00003125
		public static EndBatchTask.Builder CreateBuilder()
		{
			return new EndBatchTask.Builder();
		}

		// Token: 0x060001D2 RID: 466 RVA: 0x00004F2C File Offset: 0x0000312C
		public override EndBatchTask.Builder ToBuilder()
		{
			return EndBatchTask.CreateBuilder(this);
		}

		// Token: 0x060001D3 RID: 467 RVA: 0x00004F25 File Offset: 0x00003125
		public override EndBatchTask.Builder CreateBuilderForType()
		{
			return new EndBatchTask.Builder();
		}

		// Token: 0x060001D4 RID: 468 RVA: 0x00004F34 File Offset: 0x00003134
		public static EndBatchTask.Builder CreateBuilder(EndBatchTask prototype)
		{
			return new EndBatchTask.Builder(prototype);
		}

		// Token: 0x060001D5 RID: 469 RVA: 0x00004F3C File Offset: 0x0000313C
		static EndBatchTask()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x04000103 RID: 259
		private static readonly EndBatchTask defaultInstance = new EndBatchTask().MakeReadOnly();

		// Token: 0x04000104 RID: 260
		private static readonly string[] _endBatchTaskFieldNames = new string[]
		{
			"seqId",
			"taskId"
		};

		// Token: 0x04000105 RID: 261
		private static readonly uint[] _endBatchTaskFieldTags = new uint[]
		{
			18u,
			10u
		};

		// Token: 0x04000106 RID: 262
		public const int TaskIdFieldNumber = 1;

		// Token: 0x04000107 RID: 263
		private bool hasTaskId;

		// Token: 0x04000108 RID: 264
		private string taskId_ = "";

		// Token: 0x04000109 RID: 265
		public const int SeqIdFieldNumber = 2;

		// Token: 0x0400010A RID: 266
		private bool hasSeqId;

		// Token: 0x0400010B RID: 267
		private string seqId_ = "";

		// Token: 0x0400010C RID: 268
		private int memoizedSerializedSize = -1;

		// Token: 0x0200005F RID: 95
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<EndBatchTask, EndBatchTask.Builder>
		{
			// Token: 0x17000300 RID: 768
			// (get) Token: 0x06000763 RID: 1891 RVA: 0x00002579 File Offset: 0x00000779
			protected override EndBatchTask.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x06000764 RID: 1892 RVA: 0x0001193A File Offset: 0x0000FB3A
			public Builder()
			{
				this.result = EndBatchTask.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x06000765 RID: 1893 RVA: 0x00011954 File Offset: 0x0000FB54
			internal Builder(EndBatchTask cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x06000766 RID: 1894 RVA: 0x0001196C File Offset: 0x0000FB6C
			private EndBatchTask PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					EndBatchTask other = this.result;
					this.result = new EndBatchTask();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x17000301 RID: 769
			// (get) Token: 0x06000767 RID: 1895 RVA: 0x000119A8 File Offset: 0x0000FBA8
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x17000302 RID: 770
			// (get) Token: 0x06000768 RID: 1896 RVA: 0x000119B5 File Offset: 0x0000FBB5
			protected override EndBatchTask MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x06000769 RID: 1897 RVA: 0x000119BD File Offset: 0x0000FBBD
			public override EndBatchTask.Builder Clear()
			{
				this.result = EndBatchTask.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x0600076A RID: 1898 RVA: 0x000119D2 File Offset: 0x0000FBD2
			public override EndBatchTask.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new EndBatchTask.Builder(this.result);
				}
				return new EndBatchTask.Builder().MergeFrom(this.result);
			}

			// Token: 0x17000303 RID: 771
			// (get) Token: 0x0600076B RID: 1899 RVA: 0x000119F8 File Offset: 0x0000FBF8
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return EndBatchTask.Descriptor;
				}
			}

			// Token: 0x17000304 RID: 772
			// (get) Token: 0x0600076C RID: 1900 RVA: 0x00004D4F File Offset: 0x00002F4F
			public override EndBatchTask DefaultInstanceForType
			{
				get
				{
					return EndBatchTask.DefaultInstance;
				}
			}

			// Token: 0x0600076D RID: 1901 RVA: 0x000119FF File Offset: 0x0000FBFF
			public override EndBatchTask BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x0600076E RID: 1902 RVA: 0x00011A22 File Offset: 0x0000FC22
			public override EndBatchTask.Builder MergeFrom(IMessage other)
			{
				if (other is EndBatchTask)
				{
					return this.MergeFrom((EndBatchTask)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x0600076F RID: 1903 RVA: 0x00011A44 File Offset: 0x0000FC44
			public override EndBatchTask.Builder MergeFrom(EndBatchTask other)
			{
				if (other == EndBatchTask.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.HasTaskId)
				{
					this.TaskId = other.TaskId;
				}
				if (other.HasSeqId)
				{
					this.SeqId = other.SeqId;
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x06000770 RID: 1904 RVA: 0x00011A98 File Offset: 0x0000FC98
			public override EndBatchTask.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x06000771 RID: 1905 RVA: 0x00011AA8 File Offset: 0x0000FCA8
			public override EndBatchTask.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(EndBatchTask._endBatchTaskFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = EndBatchTask._endBatchTaskFieldTags[num2];
					}
					if (num == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num != 10u)
					{
						if (num != 18u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								if (builder != null)
								{
									this.UnknownFields = builder.Build();
								}
								return this;
							}
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
						}
					}
					else
					{
						this.result.hasTaskId = input.ReadString(ref this.result.taskId_);
					}
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x17000305 RID: 773
			// (get) Token: 0x06000772 RID: 1906 RVA: 0x00011BAC File Offset: 0x0000FDAC
			public bool HasTaskId
			{
				get
				{
					return this.result.hasTaskId;
				}
			}

			// Token: 0x17000306 RID: 774
			// (get) Token: 0x06000773 RID: 1907 RVA: 0x00011BB9 File Offset: 0x0000FDB9
			// (set) Token: 0x06000774 RID: 1908 RVA: 0x00011BC6 File Offset: 0x0000FDC6
			public string TaskId
			{
				get
				{
					return this.result.TaskId;
				}
				set
				{
					this.SetTaskId(value);
				}
			}

			// Token: 0x06000775 RID: 1909 RVA: 0x00011BD0 File Offset: 0x0000FDD0
			public EndBatchTask.Builder SetTaskId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasTaskId = true;
				this.result.taskId_ = value;
				return this;
			}

			// Token: 0x06000776 RID: 1910 RVA: 0x00011BFD File Offset: 0x0000FDFD
			public EndBatchTask.Builder ClearTaskId()
			{
				this.PrepareBuilder();
				this.result.hasTaskId = false;
				this.result.taskId_ = "";
				return this;
			}

			// Token: 0x17000307 RID: 775
			// (get) Token: 0x06000777 RID: 1911 RVA: 0x00011C23 File Offset: 0x0000FE23
			public bool HasSeqId
			{
				get
				{
					return this.result.hasSeqId;
				}
			}

			// Token: 0x17000308 RID: 776
			// (get) Token: 0x06000778 RID: 1912 RVA: 0x00011C30 File Offset: 0x0000FE30
			// (set) Token: 0x06000779 RID: 1913 RVA: 0x00011C3D File Offset: 0x0000FE3D
			public string SeqId
			{
				get
				{
					return this.result.SeqId;
				}
				set
				{
					this.SetSeqId(value);
				}
			}

			// Token: 0x0600077A RID: 1914 RVA: 0x00011C47 File Offset: 0x0000FE47
			public EndBatchTask.Builder SetSeqId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSeqId = true;
				this.result.seqId_ = value;
				return this;
			}

			// Token: 0x0600077B RID: 1915 RVA: 0x00011C74 File Offset: 0x0000FE74
			public EndBatchTask.Builder ClearSeqId()
			{
				this.PrepareBuilder();
				this.result.hasSeqId = false;
				this.result.seqId_ = "";
				return this;
			}

			// Token: 0x04000355 RID: 853
			private bool resultIsReadOnly;

			// Token: 0x04000356 RID: 854
			private EndBatchTask result;
		}
	}
}
